package com.xzq.erp.mapper;

import com.github.pagehelper.Page;
import com.xzq.erp.domain.po.ProductStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xzq.erp.domain.query.ProductStockPageQuery;
import com.xzq.erp.domain.vo.ProductStockListVO;

import java.util.List;

/**
 * <p>
 * 商品库存表 Mapper 接口
 * </p>
 *
 * @author xzq
 * @since 2025-05-26
 */
public interface ProductStockMapper extends BaseMapper<ProductStock> {

    /**
     * 批量插入商品库存
     * @param productStockList
     */
    void insertProductStock(List<ProductStock> productStockList);

    /**
     * 商品采购信息分页查询
     * @param query
     * @return
     */
    Page<ProductStockListVO> getProductStockList(ProductStockPageQuery query);
}
